package com.example.config;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Swagger3Config {

    private final Info info = new Info()
            .title("xxx-project Open API")
            .description("这是 xxx 项目的 Open API 文档")
            .version("v0.0.1");

    @Bean
    public OpenAPI openAPI() {
        return new OpenAPI()
                .info(info);
    }

}
